.root {
  position: relative;

  .card {
    background-color: var(--white);
    border: 1.66px solid var(--black);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
    height: 100%;
    min-height: 320px;
    @media screen and (min-width: 768px) {
      border: 2.66px solid var(--black) !important;
    }

    .card-header {
      display: flex;
      align-items: center;
      padding: 8px;

      .avatar {
        height: 24px;
        width: 24px;
        border-radius: 50%;
        margin-right: 4px;
        overflow: hidden;
        background: var(--gray-2);

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .publisher {
        font-size: 14px;
        font-weight: 600;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        @media screen and (max-width: 640px) {
          font-size: 12px;
        }
      }

      .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        flex-shrink: 0;
        white-space: nowrap;
      }

      .fav-group {
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .fav-chip {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        padding: 0 0 0 6px;
        color: var(--gray-9);
        cursor: pointer;

        &.active {
          color: #E97377;
        }
        &:not(.active):hover{
          color: #E97377;
        }
      }
    }

    .thumb {
      width: 100%;
      height: 160px;
      background: var(--gray-1);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;

      .category {
        position: absolute;
        bottom: 8px;
        right: 8px;
        z-index: 2;
        max-width: calc(100% - 16px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--black);
        background-color: var(--white);
        border: 2.66px solid var(--black);
        padding: 6px;
        font-size: 12px;
        line-height: 1em;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        vertical-align: middle;
      }
    }

    .meta {
      margin: 0;
      padding: 12px 12px 4px;
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      word-break: break-word;
      overflow-wrap: anywhere;
      flex-shrink: 0;

      .meta-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-X);
        line-height: 1.3em;
        margin-bottom: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .meta-details {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .meta-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        font-size: 12px;
        line-height: 1.4;
        
      }

      .meta-label {
        color: var(--gray-8);
        flex-shrink: 0;
      }

      .meta-value {
        color: var(--gray-9);
        flex: 1;
        margin-left: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    .footer {
      padding: 12px 8px 10px;
    }

    @media screen and (max-width: 768px) {
      .card-header{padding: 8px 4px;}
      .footer{padding: 12px 2px 10px;}
    }
  }
}